function login() {
    //拿到前台的数据
    let data = {
        phone: $("#phone").val(),
        password: $("#password").val(),
        code: $("#code").val()
    };
    let result = myAjax("/login", data, "post");
    // console.log(result,"----------");
    if (result.result == "success") {
        // alert("登录成功！(=^ ^=)");
        sessionStorage.setItem("isLogin", "true");
        sessionStorage.setItem("userName", result.model.userName);
        sessionStorage.setItem("loginPhone", $("#phone").val());
        window.open(URI + "/propertyhtml/manage.html", "_self");
    } else if (result.result == "codeError") {
        alert("验证码错误！")
        // window.history.back();
    } else {
        alert("手机或密码错误，请重新输入！")
    }
}
